projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7a3734
)
Fix notification cancellation detection on Android
author
Po Lu
<luangruo@yahoo.com>
Tue, 12 Mar 2024 00:51:52 +0000
(08:51 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Tue, 12 Mar 2024 00:51:52 +0000
(08:51 +0800)
* java/org/gnu/emacs/EmacsDesktopNotification.java (display1):
Don't specify FLAG_ONE_SHOT in cancel intents.
java/org/gnu/emacs/EmacsDesktopNotification.java
patch
|
blob
|
history
diff --git
a/java/org/gnu/emacs/EmacsDesktopNotification.java
b/java/org/gnu/emacs/EmacsDesktopNotification.java
index f52c3d9d4fbaf0055c1b1a4ccb8bce4f4f26a7a9..d05ed2e62038e61d9ad3b46604003945475b29e7 100644
(file)
--- a/
java/org/gnu/emacs/EmacsDesktopNotification.java
+++ b/
java/org/gnu/emacs/EmacsDesktopNotification.java
@@
-281,11
+281,9
@@
public final class EmacsDesktopNotification
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
pending = PendingIntent.getBroadcast (context, 0, intent,
- (PendingIntent.FLAG_IMMUTABLE
- | PendingIntent.FLAG_ONE_SHOT));
+ PendingIntent.FLAG_IMMUTABLE);
else
- pending = PendingIntent.getBroadcast (context, 0, intent,
- PendingIntent.FLAG_ONE_SHOT);
+ pending = PendingIntent.getBroadcast (context, 0, intent, 0);
notification.deleteIntent = pending;
manager.notify (tag, 2, notification);